#!usr/bin/env python  
# -*- coding: utf-8 -*-
""" 
@author:Simon
@file: objdemo04.py 
@time: 2018/01/18 
"""
import types

# def fn():
#     pass

# print(type(fn) == types.FunctionType)

# print(isinstance([1,2,3],(list,tuple)))

class MyDog(object):
    def __len__(self):
        return 100

dog = MyDog()
# print(len(dog))
print(dog.len())

# print(dir(MyDog))